//
//  Regular_Btn.m
//  penzer
//
//  Created by caiyc on 2018/9/25.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "Regular_Btn.h"

@implementation Regular_Btn

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame {
if (self = [super initWithFrame:frame]) {
// 设置按钮的其他属性
self.titleLabel.textAlignment =NSTextAlignmentLeft;
self.layer.cornerRadius = 5;
}
return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.layer.cornerRadius = 5;
    [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
}

@end
